package com.example.oms.dao;

import com.example.oms.entity.Prescriptions;
import com.example.oms.vo.PayItem;
import com.example.oms.vo.PrescriptionsInfoVo;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface PrescriptionsDao {
    Prescriptions getPrescriptionsById(int id);
    List<Prescriptions> getPrescriptionsByDiagRecordId(int diagRecordId);
    List<Prescriptions> getPrescriptionsByPatientId(int patientId, Pageable pageable);
    int newPrescription(Prescriptions prescriptions);

    int changePrescriptionStatus(int id, String paid);

    List<PrescriptionsInfoVo> getNotPaidPrescriptionsByPatientId(int id);

    List<Map<String,Object>> getAllPaidOrCompletedPrescriptionsWithMedList();

    int changePrescriptionStatusByDiagId(int diagId,String status);

    List<PayItem> getAllPaidMedsByDiagId(int diagId);

    List<PayItem> getAllUnpaidByDiagId(int diagId);
}
